<?php
require_once("global.php");

$imgarr = getimg(1,1,'sortnum');

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>aa</title>
<link href="css/css.css" tppabs="css/css.css" rel="stylesheet" type="text/css" />
<script src="scripts/MSClass.js" type="text/javascript"></script>
<script type="text/javascript">
function $(id){return document.getElementById(id)};
</script>
<style type="text/css" media="screen">
img{border:0}
.hot_slider{padding:0px;width:686px;border:0px solid #000000;}
.slider_wrap{position:relative;width:686px;height:224px;margin:0px;}
#slider_box{position:relative;width:686px;height:224px;overflow:hidden;float:left;}
#contentList li{float:left;position:relative;}
#contentList li img{width:686px;height:224px;}
#previewList{position:absolute;bottom:13px;right:5px;}
#previewList li{list-style:none;float:left;width:16px;height:14px;FILTER:alpha(opacity=80);opacity:0.8;border:1px solid #D00000;background-color:#FFFFFF;color:#D00000;text-align:center;cursor:pointer;margin-right:2px;padding-top:0px;overflow:hidden;}
#previewList li:hover,#previewList li.active{border:1px solid #D00000;background-color:#FF0000;color:#FFFFFF;width:16px;height:14px;font-weight:bold;font-size:13px;}
</style>
<body>
<div class="hot_slider"> 
	<div class="slider_wrap"> 
		<div id="slider_box"> 
			<ul id="contentList"> 
            <?php
              if(is_array($imgarr))
			  {
			    foreach($imgarr as $imgone)
				{
				 //$imgone['img_url']= str_replace("upload","cmsadmin/upload",$imgone['img_url']);
			?>
				<li><a href="javascript:void(0)"><?php echo changeimgurl($imgone['img_url']);?></a></li>
                <?php 
				 }
			  }
				?>
			</ul> 
		</div>
		<ul id="previewList"> 
            <?php
              if(is_array($imgarr))
			  {
			    $i=1;
			    foreach($imgarr as $imgone)
				{
				 
			?>          
			<li><?php echo $i;?></li>
            <?php
			  $i++;
              }
			}
			?>
		</ul> 
	</div> 
</div>
<script type="text/javascript">
new Marquee(
{
	MSClass	  : ["slider_box","contentList","previewList"],
	Direction : 2,
	Step	  : 0.3,
	Width	  : 686,
	Height	  : 224,
	Timer	  : 20,
	DelayTime : 2500,
	AutoStart : true
});
</script>
</body>
</html>